var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var PrizeSchema = new Schema({
	event_id:{type:Schema.Types.ObjectId,ref:'Event'},
	user_id:{type:Schema.Types.ObjectId,ref:'User'},
	desp:String,
	img:String,
	code:String,
	state:{type:Number,default:1},
	use_state:{type:Number,default:1}
});
module.exports = mongoose.model('Prize',PrizeSchema);